#include "widget.h"

#include <QApplication>
#include "server.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Widget w;
    w.show();

    //实例化HTTP服务器对象
    HttpServer* httpServer = HttpServer::getInstance();
    httpServer->initHttpServer();

    //实例化WebSocket服务器对象
    WebSocketServer* webSocketServer = WebSocketServer::getInstance();
    webSocketServer->initWebSocketServer();

    return a.exec();
}
